﻿using System;
using System.Text;
using System.Data;
using System.Data.OleDb;
using System.Collections.Generic;
using System.Reflection;
namespace BLL
{
	 	//TradeLog
		public static class TradeLog
	{	
	    private static Data.TradeLog Data_TradeLog = new Data.TradeLog();	
		
		/// <summary>
        /// 添加
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public static long Add(Model.TradeLog model)
        {
              return Data_TradeLog.Add(model);
        }
         /// <summary>
        /// 修改
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public static int Update(Model.TradeLog model)
        {
            return Data_TradeLog.Update(model);
        }
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        public static bool Delete(long Id)
        {
            return Data_TradeLog.Delete(Id);
        }       
        /// <summary>
        /// 单条
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        public static Model.TradeLog GetModel(long Id)
        {
             return Data_TradeLog.GetModel(Id);
        }
        /// <summary>
        /// 总数据数
        /// </summary>
        /// <returns></returns>
        public static int GetAll_Count()
        {
            return Data_TradeLog.GetAll_Count();
        }        
        /// <summary>
        /// 抽取分页数据
        /// </summary>
        public static List<Model.TradeLog> GetPageList_Where(int pageIndex, int pageSize,string OrderID,out int totalCount)
        {          
             return Data_TradeLog.GetPageList_Where(pageIndex, pageSize,OrderID, out totalCount);
        }
        /// <summary>
        /// 批删
        /// </summary>
        /// <param name="Ids"></param>
        /// <returns></returns>
        public static int Drop(string Ids)
        {
            return Data_TradeLog.Drop(Ids);
        }
        public static Model.TradeLog GetLastByOrderID(long orderID)
        {
            return Data_TradeLog.GetLastByOrderID(orderID);
        }
        public static Model.TradeLog GetEffectivePay(long orderID)
        {
            return Data_TradeLog.GetEffectivePay(orderID);
        }
        public static Model.TradeLog GetBySerialNumber(string serialNumber)
        {
            return Data_TradeLog.GetBySerialNumber(serialNumber);
        }
	}
}